﻿using SqlSugar;
using System;
using System.Linq;
using System.Security.Principal;
using System.Text;

namespace SqlSuarEntity
{
    ///<summary>
    ///
    ///</summary>
    public partial class WMS_BARCODE
    {
           public WMS_BARCODE(){


           }


        [SugarColumn(IsIdentity = true)]
        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:False
        /// </summary>           
        public int ID {get;set;}

        /// <summary>
        /// Desc:条码
        /// Default:
        /// Nullable:False
        /// </summary>  
        [SugarColumn(IsPrimaryKey = true)]
        public string Barcodeno {get;set;}

           /// <summary>
           /// Desc:数量
           /// Default:
           /// Nullable:False
           /// </summary>           
           public decimal iQty {get;set;}
        /// <summary>
        /// 初始数量
        /// </summary>
        public decimal iOriQty { get; set; }
        /// <summary>
        /// Desc:存货编码
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string cInvCode {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string cPoID {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:False
           /// </summary>           
           public string cBatch {get;set;}

           /// <summary>
           /// Desc:当前状态
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string cState {get;set;}

           /// <summary>
           /// Desc:
           /// Default:DateTime.Now
           /// Nullable:True
           /// </summary>           
           public DateTime dDate {get;set;}

           /// <summary>
           /// Desc:类型，材料，成品
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string cType {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string cWhCode {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string cPosCode {get;set;}

        /// <summary>
        /// Desc:条码层级： 1：外包装 2 中包  3 小包
        /// Default:1
        /// Nullable:True
        /// </summary>           
        public int? BarLevel {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public int? iSourceID {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public DateTime? RKDate {get;set;}

           /// <summary>
           /// Desc:最近入库日期
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string cInCode {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string cInType {get;set;}
        /// <summary>
        /// 最近出库日期
        /// </summary>
        public DateTime? CKDate { get; set; }
        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string cOutCode {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string cOutType {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string cStateBefore {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string cUser {get;set;}
        [SugarColumn(IsNullable = true)]
        public DateTime? dMDate { get; set; }
        [SugarColumn(IsNullable = true)]
        public DateTime? dVDate { get; set; }

        public string cSource { get; set; }
        public string cFree1 { get; set; }
        public string cFree2 { get; set; }
        public string cFree3 { get; set; }
        public string cFree4 { get; set; }
        /// <summary>
        /// Desc:
        /// Default:DateTime.Now
        /// Nullable:True
        /// </summary> 
        [SugarColumn(IsIgnore = true)]
        public DateTime? dMakeTime {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public int? LSH {get;set;}


       
        public string cBDefine1 { get; set; }
        public string cBDefine2 { get; set; }
        public string cBDefine3 { get; set; }
        public Decimal? cBDefine4 { get; set; }
    }
}
